﻿using System.ComponentModel.DataAnnotations;

namespace EFDemo
{
    /// <summary>
    /// 专业队伍
    /// </summary>
    public class ProfessionalContingent : EntityBase
    {
        /// <summary>
        /// 队伍名称
        /// </summary>
        [StringLength(20)]
        public string ContingentName { get; set; }

        /// <summary>
        /// 队伍分类
        /// </summary>
        public int ContingentCategory { get; set; }

        /// <summary>
        /// 队伍类型
        /// </summary>
        public int ContingentType { get; set; }

        /// <summary>
        /// 岗位
        /// </summary>
        public int Position { get; set; }

        /// <summary>
        /// 专业
        /// </summary>
        public int Professional { get; set; }

        /// <summary>
        /// 成员职责
        /// </summary>
        [StringLength(100)]
        public string MemberResponsibilities { get; set; }

        /// <summary>
        /// 主管单位
        /// </summary>
        [StringLength(100)]
        public string CompetentAuthority { get; set; }

        /// <summary>
        /// 协助单位
        /// </summary>
        [StringLength(50)]
        public string AssistingUnits { get; set; }

        /// <summary>
        /// 队长
        /// </summary>
        [StringLength(20)]
        public string Captain { get; set; }

        /// <summary>
        /// 队伍描述
        /// </summary>
        public string ContingentDescription { get; set; }

        /// <summary>
        /// 备注
        /// </summary>
        public string Remark { get; set; }
    }

    public class EntityBase
    {
        [Key]
        public string Id { get; set; }
        public DateTime creationtime { get; set; }
        public string creatoruserId { get; set; }
        public string creatoraccountId { get; set; }
        public DateTime lastmodificationtime { get; set; }
        public string lastmodifieruserId { get; set; }
        public string lastmodifieraccountId { get; set; }
        public short isdeleted { get; set; }
        public DateTime deletiontime { get; set; }

        [StringLength(100)]
        public string deleteruserid { get; set; }

        [StringLength(100)]
        public string deleteraccountid { get; set; }
    }
}
